<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div1{
            width: 400px;
            height: 400px;
            background-color: aqua;
        }
        .div2{
            width: 100px;
            height: 100px;
            background-color: blue;
        }
    </style>
</head>
<body>
    <div class="div1">
        <div class="div2"></div>
    </div>
    <script>
        let div1=document.querySelector('.div1')
        let div2=document.querySelector('.div2')
        // mouseenter 不会冒泡1
        // div2.addEventListener('mouseenter',function(){
        //     console.log('捕获');//移动到子盒子上输出，移动到父盒子上没有冒泡
        // })
        div1.addEventListener('mouseover',function(){
            console.log('冒泡');
        })

        // 区别 
        // mouseenter 不会冒泡 不会捕获
        // mouseover 会捕获
    </script>
</body>
</html>